<script>
<?php 
if($result){
?>
alert('增加完成');
<?php
}
?>
</script>
<style>
tr{
	height:30px;
}
td{
	padding:0 3px;
}
</style>
<div class="container" style="height:226px;">
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'prize-pic-form',
	'enableAjaxValidation'=>false,
	'htmlOptions'=>array('enctype'=>'multipart/form-data'),
)); ?>
<div style="width:100%; text-align:center; font-size:14px; font-weight:bold; padding:10px 0;">增加圖片（尺寸:320x240）</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr height="30">
		<td align="right" width="20%"><?php echo $form->labelEx($model,'path'); ?>: </td>
		<td align="left" width="50%"><?php echo $form->FileField($model,'path'); ?> </td>
		<td align="left"><?php echo $form->error($model,'path'); ?></td>
	</tr>
	<tr height="30">
		<td colspan="3" style="padding-left:160px;"><?php echo CHtml::submitButton($model->isNewRecord ? '送出' : '保存'); ?></td>
	</tr>
</table>
<?php echo $form->hiddenField($model,'prizeid'); ?>
<?php $this->endWidget(); ?>
</div><!-- form -->
</div>